package com.bjpowernode.boss.web.models.result;

import com.bjpowernode.boss.common.enums.AjaxCode;
import lombok.Data;

@Data
public class AjaxResult {
    private int code;
    private String msg;
    private Object info;
    public AjaxResult(AjaxCode ajaxCode, Object data){
        this.code= ajaxCode.getCode();
        this.msg= ajaxCode.getMsg();
        this.info=data;
    }
}
